package com.on.smile.dao;

import com.on.smile.entity.CustomerEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerDao {

    void insertCustomer(CustomerEntity customer);

    int deleteCustomer(@Param("id") Long id);

//    void deleteCustomer(List<Long> id);

    void updateCustomer(CustomerEntity customer);

    List<CustomerEntity> selectCustomerPage(Long page, Long size);

    List<CustomerEntity> selectCustomerAll();
}
